// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

import SceneContent from "../ContentScene";
import Controller from "../Controller";

const { ccclass, property } = cc._decorator;

@ccclass
export default class Scene_12 extends cc.Component {

    animate: cc.Node = null;
    onload() {

    }

    init() {
        this.animate = cc.find('animate', this.node);
        this.stopAnimation();
        this.showAnimation();
    }
    stopAnimation() {
        let animationClip = this.animate.getComponent(cc.Animation)

        animationClip.stop()
    }
    showAnimation() {
        let animationClip = this.animate.getComponent(cc.Animation)
        animationClip.play()
    }
    start() {

    }

    // update (dt) {}
}

